﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class DaDeskAgent
    {
        public long DaDeskAgent_id;
        public string Agent_Name = "";
        public string Agent_Code = "";
        public string AgrAgent_Code = "";
        public string AgrAgent_Name = "";
        public string AgrClient = "";

        public DaDeskAgent() { }
        public DaDeskAgent(SqlDataReader rd)
        {
            DaDeskAgent_id = Convert.ToInt32(rd["DaDeskAgent_id"]);
            Agent_Name = rd["Agent_Name"] is DBNull ? Agent_Name : rd["Agent_Name"].ToString();
            Agent_Code = rd["Agent_Code"] is DBNull ? Agent_Code : rd["Agent_Code"].ToString();
            AgrAgent_Code = rd["AgrAgent_Code"] is DBNull ? AgrAgent_Code : rd["AgrAgent_Code"].ToString();
            AgrAgent_Name = rd["AgrAgent_Name"] is DBNull ? AgrAgent_Name : rd["AgrAgent_Name"].ToString();
            AgrClient = rd["AgrClient"] is DBNull ? AgrClient : rd["AgrClient"].ToString();
        }
    }
}
